package com.kgc.sbt.exception;

/**
 * Created on 2021/6/23.
 * <p>
 * Author: GongMingJie
 * <p>
 * Description:
 */
public class UserException extends RuntimeException {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 838616340595607009L;

    /**
     * 异常枚举属性
     */
    private UserExceptionEnum userExceptionEnum;

    public UserException() {
    }

    public UserException(String message) {
        super(message);
    }

    public UserException(String message, Throwable cause) {
        super(message, cause);
    }

    public UserException(Throwable cause) {
        super(cause);
    }

    public UserException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public UserException(UserExceptionEnum userExceptionEnum){
        this.userExceptionEnum = userExceptionEnum;
    }

    public UserExceptionEnum getUserExceptionEnum() {
        return userExceptionEnum;
    }
}
